﻿<div ng-controller="StockHistoryController as ctrl">
    <h3>Stock History : {{ctrl.symbol}}</h3>
    <div class="well">
        <input type="text" class="form-control" placeholder="Stock Symbol" ng-bind="ctrl.symbol" />
        <input type="text" class="form-control" placeholder="Start" />
        <input type="text" class="form-control" placeholder="End" />
    </div>
    <div class="table-responsive">
        <table class="table table-condensed table-striped">
            <thead>
            <tr>
                <th>Date</th>
                <th>Low</th>
                <th>High</th>
                <th>Adjusted Close</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="stock in ctrl.stockQuotes">
                <td>{{stock.Date.toString()}}</td>
                <td>{{stock.Low}}</td>
                <td>{{stock.High}}</td>
                <td>{{stock.AdjustedClose}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>